import request from '@/router/axios';
//计划跟踪控制
// 列表
export const getFollowConList = (params) => {
  return request({
    url: '/api/hg-public/plantrackcontrol/page',
    method: 'get',
    params: {
      ...params,
    }
  })
}
// 删除计划跟踪控制
export const removeFollowCon = (ids) => {
  return request({
    url: '/api/hg-public/plantrackcontrol/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}
// 新增计划跟踪控制
export const addFollowCon = (row) => {
  return request({
    url: '/api/hg-public/plantrackcontrol/submit',
    method: 'post',
    data: row
  })
}
// 更新计划跟踪控制
export const updateFollowCon = (row) => {
  return request({
    url: '/api/hg-public/plantrackcontrol/submit',
    method: 'post',
    data: row
  })
}

// 计划跟踪控制详情
export const getFollowCon = (id) => {
  return request({
    url: '/api/hg-public/plantrackcontrol/detail',
    method: 'get',
    params: {
      id
    }
  })
}

//获取新增跟踪控制所需数据
export const getFollowTrackData = (params) => {
  return request({
    url: '/api/hg-public/plantrackcontrol/getTrackData',
    method: 'get',
    params: {
      ...params,
    }
  })
}
 